home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d10
/
mailfile.arc
/
MAILFILE.DOC
< prev
next >
Wrap
Text File
|
1991-03-20
|
5KB
|
120 lines
Mail File - Four small doors to emulate sending files to a users mailbox.
------------------------------------------------------------------------------
v1.0 91 03 13 by Roy Pereira
SEND
PCB syntax: SEND file [file[file...]] TO user
file is any filename (XXXXXXXX.XXX)
user is any user's name (JOHN SMITH)
DOS syntax: SEND pcboard.dat databasefile
pcboard.dat is the location and name of your pcboard.dat file
databasefile is the location and name of your data file
DOS errorlevels:
0 - OK
1 - Could not open PCBOARD.SYS
2 - Not enough arguments
4 - Could no find the PCBDOOR environment variable
5 - User was not found in PCBNDX.x file
This command saves the current date, the user who is sending the file, the
user who is receiving the file, and the filename to the database file. Then it
issues the keyboard macros "UB file".
FILELIST
PCB syntax: FILELIST
DOS syntax: FILELIST databasefile
databasefile is the location and name of your data file
DOS errorlevels:
0 - OK
1 - Could not open PCBOARD.SYS
2 - Not enough arguments
This command prints out all of your files from the data file to PCBDOOR.TXT,
so it will be viewed upon returning from the door.
NEWFILES
PCB syntax: NEWFILES
DOS syntax: NEWFILES databasefile
databasefile is the location and name of your data file
NOTE: You must have a user.sys in the current directory
DOS errorlevels:
0 - OK
1 - Could not open PCBOARD.SYS
2 - Not enough arguments
3 - Could not open USER.SYS
This command prints out all of your new files (ie. files that have been sent
to you since you last logged on) from the data file to PCBDOOR.TXT.
RECEIVE
PCB syntax: RECEIVE file
file is any filename
DOS syntax: RECEIVE databasefile
databasefile is the location and name of your data file
DOS errorlevels:
0 - OK
1 - Could not open PCBOARD.SYS
2 - Not enough arguments
4 - Specified file was not found or the user had no right to
receive the entry
This command joins the appropriate conference and issues the 'D file" command.
KILLFILE
PCB syntax: KILLFILE file
file is any filename
DOS syntax: KILLFILE databasefile
databasefile is the location and name of your data file
DOS errorlevels:
0 - OK
1 - Could not open PCBOARD.SYS
2 - Not enough arguments
3 - Could not find the PCBDOOR environment variable
4 - Specified file was not found or the user had no right to
delete the entry
This command deletes an entry in your data file that corresponds to the
filename given if the user is either the person who uploaded it or the person
the file is intended for. It produces a file that the last character of the
extension or filename is '@'.
eg. FILE.DAT -> FILE.DA@
DATAFILE -> DATAFIL@
-----------------------------------------------------------------------------
You must use these doors with v14.5a (beta) and later. Each command looks for
an enviroment variable called PCBDOOR, and send output to either PCBOARD.KBD
and/or PCBDOOR.TXT.
All the programs are set up to work with any language, since you can set the
approriate responces to errorlevels.
All uploaded files are still public, these commands just emulate a mailbox that
can handle files. I've heard this feature is coming in v15.0 PCBoard.
The following is the structure of the database file in C:
struct flatfile
{
char from[25];
char to[25];
char fileName[12];
struct date dateUploaded;
unsigned conferenceNo;
char conferenceName[14];
};
The struct date is from the dos.h include file.
-----------------------------------------------------------------------------
Any questions/comments can be refered to:
Roy Pereira
369 Enfield Avenue
Ottawa, Ontario, Canada
K1L 7L2
C.I.D.A. bulletin board (819)953-8207/8208